/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package z.h.w.test;

/**
 *
 * @author EnzoZhong
 */
public class Prova {

     Integer x = 0;
     Integer y = 0;

     public Prova ( Integer a , Integer b ) {
          x += a;
          y += b;
     }

     public Integer funz2 ( Prova b , Integer a ) {
          b = new Prova ( 1 , 1 );
          System.out.println ( "aaa" + b );
          b.x = this.x + a;
          return b.x;
     }

     @Override
     public String toString () {
          return "Prova{" + "x=" + x + ", y=" + y + '}';
     }

}
